package com.suyang.mongo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.suyang.mongo.dao.UserMongoImpl;
import com.suyang.mongo.model.User;

@Service
public class IUserServiceImpl implements IUserService {

	@Autowired
	private UserMongoImpl userMongo;

	/**
	 * 用户登录
	 * 
	 * @param user
	 * @return
	 */
	public User login(User user) {
		User user2 = userMongo.login(user);
		return user2;
	}

	@Override
	public void add(User user) {
		userMongo.add(user);
	}
}